import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';

import 'action.dart';
import 'state.dart';

Widget buildView(SplashState state, Dispatch dispatch, ViewService viewService) {
  return Scaffold(
    body: Center(
      child: Image.asset('images/splash.png',fit: BoxFit.cover,),
    ),
    appBar: AppBar(
      title: Text(state.title),
      actions: <Widget>[
        GestureDetector(
          child: Text('点我跳转'),
          onTap: (){
            dispatch(SplashActionCreator.toMainPage());
          },
        ),
      ],
    ),
  );
}
